package com.hospital.workstation.service;

import com.hospital.workstation.domain.HisChangeDepartment;
import com.hospital.workstation.domain.vo.HisChangeDepartmentVo;
import com.hospital.workstation.domain.bo.HisChangeDepartmentBo;
import com.hospital.common.core.page.TableDataInfo;
import com.hospital.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 转科信息Service接口
 *
 * @author whb
 * @date 2023-03-08
 */
public interface IHisChangeDepartmentService {

    /**
     * 查询转科信息
     */
    HisChangeDepartmentVo queryById(Long id);

    /**
     * 查询转科信息列表
     */
    TableDataInfo<HisChangeDepartmentVo> queryPageList(HisChangeDepartmentBo bo, PageQuery pageQuery);

    /**
     * 查询转科信息列表
     */
    List<HisChangeDepartmentVo> queryList(HisChangeDepartmentBo bo);

    /**
     * 新增转科信息
     */
    Boolean insertByBo(HisChangeDepartmentBo bo);

    /**
     * 修改转科信息
     */
    Boolean updateByBo(HisChangeDepartmentBo bo);

    /**
     * 校验并批量删除转科信息信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * His出院,查询最后转科记录
     * @param medicalRecordNo
     * @return
     */
    HisChangeDepartmentVo selectByMedicalRecordNoAnd(int medicalRecordNo);


}
